package org.hhh.org.domain;

import lombok.Data;
import org.hhh.basic.domain.Base;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends Base{
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*暂时不用*/
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    private Integer state;

    private Long manager_id;
    private Employee manager;

    private Long parent_id;
    private Department parent;

    //二级部门
    private List<Department> children=new ArrayList<>();
}
